/*
 *      IL_BaseSSA.java
 *
 *      Copyright 2008 Pablo Nicolas Diaz Bilotto <pablonicolas.diaz@gmail.com>
 *
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */
package ilanguage.iltokens;

import lexer.EntryType;



/**
 * The Interface IL_BaseSSA.
 */
public interface IL_BaseSSA {

	/**
	 * Generate code.
	 * Sirve para que german meta el codigo de X86 q se le cante
	 *
	 * @return el codigo en String
	 */
	String GenerateCode();

	/**
	 * Gets the sequence.
	 *
	 * @return the sequence
	 */
	String getSequence();

	/**
	 * Gets the value for these SSA.
	 *
	 * @return the value
	 */
	Object getValue();

	/**
	 * Checks if is discartable.
	 * Si soy descartable, no puedo generar codigo
	 *
	 * @return true, if is discartable
	 */
	boolean isDiscartable();

	/**
	 * Sets the reference.
	 * sirve para ponerle la referencia a un Branch
	 *
	 * @param t the new reference
	 */
	void setReference(final IL_SSA t);

	/**
	 * Sets the ref print.
	 * Sirve para decir que se ponga el label cuando genera el codigo
	 *
	 * @param refPrint the new ref print
	 */
	void setRefPrint(boolean refPrint);

	/**
	 * Checks if is ref print
	 * debo Meter mi label?
	 *
	 * @return true, if is ref print
	 */
	boolean isRefPrint();

	/**
	 * Solve types.
	 * resolucion de tipos, es decir controlar q no haya asignaciones c
	 * de tipos chotas
	 *
	 * @return the entry type
	 */
	EntryType solveTypes();

	/**
	 * Devuelvo el registro q tiene asignado
	 * @return
	 */
	String getResultRegister();

	boolean ispostdiscartable();

}